<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String errorMsg = (String)request.getAttribute("error");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Register.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="js/register.js"></script>
  </head>
  
  <body>
  <%if(errorMsg != null)
  { %>
  error:<%=errorMsg %><br>
  <%} %>
    This is Register page. <br>
    <form action="RegisterServlet" method="post" onsubmit="return CheckRegister()">
     <table>
    	<tr>
    		<td>Username</td>
    		<td><input name = "Username" id="Username" type = "text"/></td>
    	</tr>
    	<tr>
    		<td>Password</td>
    		<td><input name = "Password" id="Password" type = "password" /> </td>
    	</tr>
    	<tr>
    		<td>Email</td>
    		<td><input name = "Email" id="Email" type="text"  /></td>
    	</tr>
    	<tr>
    		<td>Phone</td>
    		<td><input name = "Phone" id="Phone" type="text"  /></td>
    	</tr>
    	<tr>
    		<td>Address</td>
    		<td><input name = "Address" id="Address" type="text"  /></td>
    	</tr>
    </table>
    <input type="submit" value="Submit" onclick="return CheckRegister()" />
    </form>
  </body>
</html>
